package com.xdf.zipperdye.service;

import com.xdf.zipperdye.dao.business.OrderMainMapper;
import com.xdf.zipperdye.model.OrderMain;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class OrderMainServiceImpl implements OrderMainService {
    @Autowired
    private OrderMainMapper dao;

    @Override
    public int deleteByPrimaryKey(Integer iid) {
        return dao.deleteByPrimaryKey(iid);
    }

    @Override
    public int insert(OrderMain record) {
        return dao.insert(record);
    }

    @Override
    public int insertSelective(OrderMain record) {
        return dao.insertSelective(record);
    }

    @Override
    public OrderMain selectByPrimaryKey(Integer iid) {
        return dao.selectByPrimaryKey(iid);
    }

    @Override
    public int updateByPrimaryKeySelective(OrderMain record) {
        return dao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(OrderMain record) {
        return dao.updateByPrimaryKey(record);
    }

    @Override
    public List<OrderMain> selectByBillCode(String billCode) {
        return dao.selectByBillCode(billCode);
    }

    @Override
    public OrderMain getOrderMain8IdState(Integer iid, Integer state) {
        return dao.getOrderMain8IdState(iid, state);
    }
}
